package com.dayouzi.crawler_monitor.service;

import com.dayouzi.crawler_monitor.pojo.entity.Crawler;
import com.dayouzi.crawler_monitor.pojo.page.PageBean;
import com.dayouzi.crawler_monitor.pojo.query.CrawlerListQuery;
import com.dayouzi.crawler_monitor.pojo.vo.AnalysisListVO;
import com.dayouzi.crawler_monitor.pojo.vo.CrawlerListVO;
import com.dayouzi.crawler_monitor.pojo.vo.OptionDataVO;

import java.util.HashMap;
import java.util.List;

public interface AnalysisService {
    /**
     * 获取七日和当日的数据量
     * @param id
     * @return
     */
    HashMap<String, int[]> getOptionBySevenDay(Integer id, String date);

    HashMap<String,int[]> getOptionBy24Hour(Integer id, String date);

    PageBean<AnalysisListVO> listPage(Integer page, Integer limit, CrawlerListQuery crawlerListQuery);

    List<HashMap<String, Integer>> getOptionByPieClass(Integer id, String date);

    List<HashMap<String, Integer>> getOptionByPieStatus(Integer id, String date);

    Crawler getCrawlerDetail(Integer id);
}
